package com.qige.dome.homework;

/**
 * @Author qige
 * @Date 2024-08-07 18:44
 * @Description
 */
public class homework3 {
    public static void main(String[] args) {
        Thread t1 = new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    System.out.println(Thread.currentThread().getName() + "线程正在执行:" + i);
                }
            }
        }, "线程A");
        t1.start();
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName() + "线程正在执行:" + i);
        }
    }
}